package com.zjw.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zjw.annotation.domain.ResponseResult;
import com.zjw.annotation.domain.entity.Category;

import java.util.List;

/**
 * 分类表(Category)表服务接口
 *
 * @author makejava
 * @since 2023-12-12 13:57:37
 */
public interface CategoryService extends IService<Category> {

    /**
     * 前台获取所有可用分类列表
     * @return {@link ResponseResult}
     */
    ResponseResult getCategoryList();

    /**
     * 后台获取所有有效分类列表
     *
     * @return {@link ResponseResult}
     */
    ResponseResult getValidCategoryList();

    /**
     * 获取所有类别列表
     *
     * @return {@link ResponseResult}
     */
    ResponseResult getAllCategoryList(Long pageNum, Long pageSize);

    ResponseResult addCategory(Category category);

    ResponseResult getCategory(Long id);

    ResponseResult saveCategery(Category category);

    ResponseResult delCategories(List<Long> idList);
}

